<?php

declare(strict_types=1);
/**
 * 创建人 : Forpastime
 *
 * @link     http://hypercmf.com
 * @document https://hyperf.wiki
 * @contact  forpastime@qq.com
 * @git  https://gitee.com/hypercmf/hypercmf1.0.git
 */
namespace App\Event;

/**
 * Class SmsCheck 短信验证码事件验证
 */
class SmsSend
{
    /**
     * @var int 验证码
     */
    public $code;

    /**
     * @var string 手机号
     */
    public $mobile;

    /**
     * @var bool 是否发送成功
     */
    public $hasSend = false;

    /**
     * @var string 类型
     */
    public $type;

    /**
     * SmsSend constructor.
     * @param $mobile
     * @param $code
     * @param $type string 类型 login, regist, findpassword ...
     */
    public function __construct($mobile, $code, $type)
    {
        $this->mobile = $mobile;
        $this->code = $code;
        $this->type = $type;
    }
}
